package com.chinasofti.parems;

public class Demo01 {
    public static void main(String[] args) {
        System.out.println(sum(20,50,60,8));
    }
    public static int sum(int...a){
        int sum = 0;
        for (int i : a){
            sum += i;
        }
        return sum;
    }
}
